/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bishe.entity;

import com.thinkgem.jeesite.modules.bishe.entity.BisheGoods;
import com.thinkgem.jeesite.modules.bishe.entity.BisheClient;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.bishe.entity.BisheOrder;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 物品日志管理Entity
 * @author yue
 * @version 2018-12-28
 */
public class BisheGoodsLog extends DataEntity<BisheGoodsLog> {
	
	private static final long serialVersionUID = 1L;
	private BisheGoods goods;		// 物品
	private BisheClient client;		// 领取人
	private String orderType;		// 类型
	private String useNum;		// 数量
	private Date useDate;		// 时间
	private BisheOrder order;		// order_id
	
	public BisheGoodsLog() {
		super();
	}

	public BisheGoodsLog(String id){
		super(id);
	}

	public BisheGoods getGoods() {
		return goods;
	}

	public void setGoods(BisheGoods goods) {
		this.goods = goods;
	}
	
	public BisheClient getClient() {
		return client;
	}

	public void setClient(BisheClient client) {
		this.client = client;
	}
	
	@Length(min=0, max=64, message="类型长度必须介于 0 和 64 之间")
	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}
	
	@Length(min=0, max=10, message="数量长度必须介于 0 和 10 之间")
	public String getUseNum() {
		return useNum;
	}

	public void setUseNum(String useNum) {
		this.useNum = useNum;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUseDate() {
		return useDate;
	}

	public void setUseDate(Date useDate) {
		this.useDate = useDate;
	}
	
	public BisheOrder getOrder() {
		return order;
	}

	public void setOrder(BisheOrder order) {
		this.order = order;
	}
	
}